package com.hospital.dictionary.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.dictionary.module.entity.StaffDict;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lvyao
 * @since 2022-02-14
 */
public interface StaffDictMapper extends BaseMapper<StaffDict> {

    IPage<StaffDict> getUserByRoleId(Page<StaffDict> page, String roleId, String username);

    StaffDict getUserByStaffNo(@Param("username") String username);
}
